// ==================销售开票============================                               
import request from "@/utils/request";

// 查询
export function listInfo(query) {
    return request({
      url: '/heart/KingInvoiceReceivable/list',
      method: 'get',
      params: query
    })
  }
  
  // 查询
  export function getInfo(id) {
    return request({
      url: '/heart/KingInvoiceReceivable/' + id,
      method: 'get'
    })
  }
  
  // 新增
  export function addInfo(data) {
    return request({
      url: '/heart/KingInvoiceReceivable/submit',
      method: 'post',
      data: data
    })
  }
  // 新增
  export function addInfoTemporary(data) {
    return request({
      url: '/heart/KingInvoiceReceivable/draft',
      method: 'post',
      data: data
    })
  }
  
  // 修改
  export function updateInfo(data) {
    return request({
      url: '/heart/KingInvoiceReceivable',
      method: 'put',
      data: data
    })
  }
  
  // 删除
  export function delInfo(id) {
    return request({
      url: '/heart/KingInvoiceReceivable/' + id,
      method: 'delete'
    })
  }
  
  // 导出
  export function exportInfo(query) {
    return request({
      url: '/heart/KingInvoiceReceivable/export',
      method: 'get',
      params: query
    })
  }